import request from '@/utils/request'


export function getJadeList(pageNum, pageSize,jadeCode,supplierId,warehouseId) {//查询货品列表
    return request({
        url: '/system/jade/list',
        headers: {
            isToken: true
        },
        params: {
            pageNum, pageSize,jadeCode,supplierId,warehouseId
        },
        method: 'get',
    });
}

export function getJadeStatusList() {//查询货品状态列表
    return request({
        url: '/system/jade/getInventoryStatus',
        headers: {
            isToken: true
        },

        method: 'get',
    });
}

export function deleteJade(jadeCode) {//删除货品
    return request({
        url: '/system/jade/' + jadeCode,
        headers: {
            isToken: true
        },
        method: 'delete',
    })
}